package com.zxm.sunshineaiary.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.zxm.sunshineaiary.activity.base.MybaseActivity;

/**
 * 用于当作MainActivity主菜单的背景Activity，达到透明北京的效果，无任何操作。
 * 
 * @author 在joker
 * 
 */
public class BackgroundActivity extends MybaseActivity {

	private final int ALPHA = 500;
	private final String TAG = "BackgroundActivity";
	private LinearLayout mLayout;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.background);
		this.startActvity();
		findView();
		// mLayout.getBackground().setAlpha(ALPHA);
	}

	private void findView() {
		mLayout = (LinearLayout) this
				.findViewById(R.id.linearlayout_background);
	}

	private void startActvity() {
		Intent intent = new Intent(this, MainActivity.class);
		intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
		this.startActivity(intent);
	}
}
